package game.players.cpu.opponent;

import game.players.SoccerPlayer;

public class WithBallRightMovingCPUOpp extends WithBallAbstractMovingCPUOpp {

	public WithBallRightMovingCPUOpp(SoccerPlayer player, double x, double y) {
		super(player, x, y);
		this.getPlayer().setRightAnimationWithSpeed(0.1);
		this.getSoccerBall().setRightAnimationWithSpeed(0.01 * (0.05 + this.getPlayer().getMovementSpeed()));
		this.getSoccerBall().locateBall(this.getPlayer().getX() + this.getPlayer().getAppearance().getWidth()
				                         - this.getSoccerBall().getX() - this.getSoccerBall().getRatio(), 0);
	}

	@Override
	public boolean isRight() {
		return true;
	}

}
